<?

class airports {


// Function // Get airport description
function get_airport($params){

	if($params){
		
		// use safe function
		$params = in($params);
	
		if($params['airport_code']) $sql_where .= " AND airport_code = '".$params['airport_code']."' ";
	
		$sql = "SELECT airport_code, full, simple
		FROM airports 
		WHERE 1 = 1
		".$sql_where."
		LIMIT 1 ";
		
		return apply_query($sql, $num_rows, $params['cache']);
	
	}

}
// END FUNCTION

}

?>